﻿@model TipMessage
@{
    switch (Model.TipStatus)
    {
        case TipStatus.Error:
            if (!string.IsNullOrEmpty(@Model.Message))
            {
                <text>
                    <div class="alert alert-danger" role="alert">@Model.Message</div>
                </text>
            }
            break;
        case TipStatus.Info:
            if (!string.IsNullOrEmpty(@Model.Message))
            {
                <text>
                    <div class="alert alert-info" role="alert">@Model.Message</div>
                </text>
            }
            break;
        case TipStatus.Warning:
            if (!string.IsNullOrEmpty(@Model.Message))
            {
                <text>
                    <div class="alert alert-warning" role="alert">@Model.Message</div>
                </text>
            }
            break;
        case TipStatus.Success:
            if (!string.IsNullOrEmpty(@Model.Message))
            {
                <text>
                    <div class="alert alert-success" role="alert">@Model.Message</div>
                </text>
            }
            break;
    }
}
